<!-- 轮播图组件 -->
<template>
  <div class="swiper_box">
    <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
      <van-swipe-item v-for="item in bannerArr" :key="item.id">
        <img :src="item.image_url" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["bannerArr"],
};
</script>
<style lang='less' scoped >
/* @import url(); 引入css类 */
.swiper_box {
  width: 100%;
  img {
    width: 100%;
    display: block;
  }
}
</style>